import http from '@/utils/request'

// 查询工位列表
export function listStation (query) {
  return http({
    url: '/backstage/ddbsWorkStation',
    method: 'get',
    params: query
  })
}

// 查询工位详细
export function getStation (id) {
  return http({
    url: '/backstage/ddbsWorkStation/' + id,
    method: 'get'
  })
}

// 新增工位
export function addStation (data) {
  return http({
    url: '/backstage/ddbsWorkStation',
    method: 'post',
    data: data
  })
}

// 修改工位
export function updateStation (data) {
  return http({
    url: '/backstage/ddbsWorkStation',
    method: 'put',
    data: data
  })
}

// 删除工位
export function delStation(ids) {
  return http({
      url: '/backstage/ddbsWorkStation',
      method: 'delete',
      params:{ids}

  })
}
